public TDocumentFormat GetFromExtensionAndHeader( System.string fileExtension, System.byte[] header, System.bool forReading, out System.int matchScore )
Parameters
- fileExtension
- File extension without the dot, for example "txt", "docx" and so on.
- header
- File header. Can be null.
- forReading
- Indicates whether the file is for reading or for writing.
- matchScore
- The match score of the returned document format. Can be:
2 - the returned document format matches both the given file extension and header
1 - the returned document format matches either the given file extension or header
0 - the returned document format is the default document format, because no format in this registry matches the given file extension or header